import React from 'react'
import { useLocation } from 'react-router-dom'

export default function AboutState() {
    let {state: {id,title, isDone}} = useLocation()
    console.log(id,title,isDone);
    
    
  return (
    <div>
      <h3>state参数</h3>
      <p>接收到的参数： {id}， {title}，{isDone}</p>
    </div>
  )
}
